package com.bac.rentmap.ad.flat;

import java.io.Serializable;

import javax.jdo.annotations.EmbeddedOnly;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

import com.google.appengine.api.datastore.GeoPt;

/**
 * @deprecated use {@link GeoPt}
 *
 * @author Andrew Osipenko
 */
@PersistenceCapable
@EmbeddedOnly
@Deprecated
public class GeoLocation implements Serializable {
    @Persistent
    public Double lat;
    @Persistent
    public Double lon;

    public GeoLocation() {

    }
    public GeoLocation(Double lat, Double lon) {
        this.lat = lat;
        this.lon = lon;
    }

    public Double getLat() {
        return lat;
    }

    public Double getLon() {
        return lon;
    }

    @Override
    public String toString() {
        return "(" + lat + ", " + lon + ")";
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public void setLon(Double lon) {
        this.lon = lon;
    }

}
